package com.dotstone.chipism.util;

import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class StatusBarHeightManager {

	private static StatusBarHeightManager mStatusBarHeightManager;// 单例
	public LinearLayout.LayoutParams layoutParams1;
	public RelativeLayout.LayoutParams layoutParams2;
	private int h;
	public static StatusBarHeightManager getInstance() {
		if (mStatusBarHeightManager == null) {
			mStatusBarHeightManager = new StatusBarHeightManager();
		}
		return mStatusBarHeightManager;
	}
	public int getH() {
		return h;
	}
	public void setH(int h) {
		this.h = h;
		layoutParams2 = new RelativeLayout.LayoutParams(
				ViewGroup.LayoutParams.WRAP_CONTENT,
				ViewGroup.LayoutParams.WRAP_CONTENT);
		layoutParams2.setMargins(0,h,0,0);
	}
	
	

}
